//
//  XGProfileTableViewController.swift
//  WeIBo
//
//  Created by 苏文潇 on 2017/3/4.
//  Copyright © 2017年 苏文潇. All rights reserved.
//

import UIKit

class XGProfileTableViewController: XGVisitorViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        if isLogin == false
        {
            visitorView?.exchangeVisitorView(imageName: "visitordiscover_image_profile", title: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人")
        }
        else
        {
            setUI()
        }
    }

    private func setUI()
    {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Push", target: self, action: #selector(pushClick))
    }
    
    
    @objc private func pushClick(){
        
        let pushVc = XGTextViewController()

        self.navigationController?.pushViewController(pushVc, animated: true)
    }
}
